package xyz.cerberu.cet.subtitle.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xyz.cerberu.cet.subtitle.domain.Subtitle;

import java.util.List;

@Mapper
public interface SubtitleDao {
    int subtitleInsert(@Param("subtitle_name") String subtitle_name);

    Subtitle selectSubtitle(@Param("subtitle_name") String subtitle_name);

    int selectResourceSum(@Param("sub")Integer sub);

    List<Subtitle> selectAllSubtile();

    Subtitle selectBySub_id(@Param("sub_id")Integer sub_id);
}
